const mongoose = require("mongoose");

const schema = new mongoose.Schema({
    // 属性名:数据类型,
    row: Number, // 座位行号
    col: Number, // 座位列号
    theaterId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "theaters"
    },
    seatsArr: Array,
    // 座位所从属的放映厅
})
mongoose.model("seats", schema, "seats");